﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace Cataloger
{
    public partial class FrmPodajNazweNosnika : Form
    {
        public FrmPodajNazweNosnika()
        {
            InitializeComponent();
        }
        public FrmPodajNazweNosnika(DriveInfo di):this()
        {
            this.textBox1.Text = di.Name +" "+ di.VolumeLabel;

        }
        public string Nazwa
        {
            get { return this.textBox1.Text; }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
